<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/resources/js/housekeeper/housekeeperManage.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/main_font.css" />
<title>四川芝麻开门管理系统</title>
</head>
<body>
	<div class="container">
		<c:set var="housekeeper" scope="session" value="${housekeeper}" />
		<c:if test="${housekeeper==null}">
			<span><a
				href="${pageContext.request.contextPath}/pagejump/toLogin">您未登陆哦，请登陆！</a></span>
		</c:if>
		<c:if test="${housekeeper!=null}">
			<span>${sessionScope.housekeeper.name},欢迎您！<a
				href="${pageContext.request.contextPath}/pagejump/toLogin">退出登陆</a></span>
		</c:if>
	</div>
	<div class="container">
		<span><a
			href="${pageContext.request.contextPath}/pagejump/toIndex">主页</a>><a
			href="${pageContext.request.contextPath}/admin/housekeeper">管家信息管理</a>>管家账号注册</span>
	</div>
	<div id="Return">
		<c:set var="response" scope="request" value="${serverResponse}" />
		<c:if test="${response.status==1}">
			<font color='red'>${response.msg}</font>
		</c:if>
	</div>
	<div class="container">
		<form
			action="${pageContext.request.contextPath}/housekeeper_manage/insert_housekeeper"
			id="formUserInsert">
			<div class="form-group" id="userNameDiv">
				<label for="userName">账号</label> <input type="text"
					autocomplete="off" class="form-control" id="userName"
					placeholder="userName" name="userName">
			</div>
			<div class="form-group" id="passWordDiv">
				<label for="passWord">密码</label> <input type="text"
					autocomplete="off" class="form-control" id="passWord"
					placeholder="passWord" name="passWord">
			</div>
			<div class="form-group" id="phoneDiv">
				<label for="phone">手机</label> <input type="text" autocomplete="off"
					class="form-control" id="phone" placeholder="phone" name="phone"
					onkeyup="value=value.replace(/[^\d]/g,'')">
			</div>
			<div class="form-group" id="housekeeper_addressDiv">
				<label for="housekeeper_address">办公地址(服务点)</label> <input
					type="text" class="form-control" id="housekeeper_address"
					placeholder="address" name="housekeeper_address" autocomplete="off">
			</div>
			<div class="form-group" id="nameDiv">
				<label for="name">姓名</label> <input type="text" class="form-control"
					id="name" placeholder="name" name="name" autocomplete="off">
			</div>
			<div class="form-group" id="identity_cardDiv">
				<label for="identity_card">身份证号</label> <input type="text"
					autocomplete="off" class="form-control" id="identity_card"
					placeholder="identity_card" name="identity_card">
			</div>
			<div class="form-group" id="identity_addressDiv">
				<label for="identity_address">身份证地址</label> <input type="text"
					class="form-control" id="identity_address" autocomplete="off"
					placeholder="identity_address" name="identity_address">
			</div>
			<!-- <div class="form-group" id="product_nameDiv">
				<label for="product_name">产品名</label> <input type="text"
					class="form-control" id="product_name" placeholder="product"
					name="product_name" list="product_name_list"
					onchange="product_model_select()">
				<datalist id="product_name_list">
				</datalist>
			</div> -->
			<c:if test="${housekeeper!=null}">
				<c:if
					test="${(housekeeper.user_grade>80 && housekeeper.user_grade<=99)}">
					<div class="form-group" id="user_gradeDiv">
						<label for="user_grade">管家级别</label> <input type="text"
							class="form-control" id="user_grade" autocomplete="off"
							placeholder="user_grade" name="user_grade">
					</div>
				</c:if>
			</c:if>
			<div>
				<button type="button" class="btn btn-success"
					onclick="registerVerify()">提交</button>
			</div>
		</form>

	</div>
</body>
</html>